package com.training.java.corejava.interfacedemo;

public class InterfaceDemo 
{
	public static void main(String[] args)
	{
		Animal dog1 = new  Dog("Black", "3", "DoogFood", "Bark");
		Animal cat1 = new  Cat("White", "3", "CatFood", "meow");
		Animal elephant1 = new  Elephant("gray", "10", "banana", "trumpet");
		
		doStuff(dog1);
		doStuff(cat1);
		doStuff(elephant1);
	}
	 public static void doStuff(Animal animal)
	 {
		 animal.eat();
		 animal.makeSound();
		 animal.walk();
		 
	 }

}
